import { IsNotEmpty, IsString, Length } from 'class-validator';

export class SigninDto {
  @IsString()
  @IsNotEmpty()
  @Length(3,20)
  username:string;

  @IsString()
  @IsNotEmpty()
  @Length(3,20,{
    message:`用户名的密码必须在$constraint1到$constraint2之间,当前传递的值是$value`
  })
  password:string;
}
